<style type="text/css">
    .sm-st {
        background:#fff;
        padding:12px;
        -webkit-border-radius:3px;
        -moz-border-radius:3px;
        border-radius:3px;
        margin-bottom:20px;

    }
    .sm-st-icon {
        width:45px;
        height:45px;
        display:inline-block;
        line-height:45px;
        text-align:center;
        font-size:30px;
        background:#eee;
        -webkit-border-radius:5px;
        -moz-border-radius:5px;
        border-radius:5px;
        float:left;
        margin-right:10px;
        color:#fff;
        border-radius:5px ;
    }
    .sm-st-info {
        font-size:12px;
        padding-top:2px;
        font-weight:600;
    }
    .sm-st-info span {
        display:block;
        font-size:12px;
        font-weight:600;
        color: #0089DB;
    }
    .orange {
        background:#fa8564 !important;
    }
    .tar {
        background:#45cf95 !important;
    }
    .sm-st .green {
        background:#86ba41 !important;
    }
    .pink {
        background:#AC75F0 !important;
    }
    .yellow-b {
        background: #fdd752 !important;
    }
    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color:#fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
        box-shadow: 0 1px 0px rgba(0,0,0,0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }
    .st-red2 {
        background-color: #3b9d84;
    }
    .st-green {
        background-color: #5fb870;
    }
    .st-brown {
        background-color: #ffb300;
    }
    .st-blue {
        background-color: #03a9f4;
    }
    .st-blue2 {
        background-color: #4dc3a6;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float:left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px; }
    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500; }
    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis; }
    .stat.lg .value {
        font-size: 26px;
        line-height: 28px; }
    .stat.lg .name {
        font-size: 16px; }
    .stat-col .progress {height:2px;}
    .stat-col .progress-bar {line-height:2px;height:2px;}

    .item {
        padding:30px 0;
    }
    .table{
        box-shadow:2px 1px 3px rgb(236,236,236);
        -webkit-box-shadow:2px 1px 3px rgb(236,236,236);
        margin: 0;
    }
    th{
        text-align: center;
    }
    td{
        text-align: center;
        background-color:#2c435b;
        font-weight: bold;
        color:rgb(255,255,255);
    }

    /*.table-responsive{
        background-color: #0e1946;*/

    .table+.table-bordered{
        border:0px solid white;
        border-collapse:separate;
        border-spacing: 2px;

    }


</style>


<style type="text/css">
    table{
        font-size: 20px;
    }
    td{
        text-align: center;
        background-color:#0a40ad;
        font-weight: bold;
        color:#e2feff;
    }
    .table-striped > tbody > tr:nth-child(2n+1) > td,
    .table-striped > tbody > tr:nth-child(2n+1) > th {
        background-color: #101a61;
    }
    thead{
        background: linear-gradient(#0a40ad,#101a61);
    }
    .standard{
        color: #a3feff;
    }
    .ngitem{
        color: #ffdda3;
    }
    table{
        background-color: #001A35;
    }
    .row{
        width: 100%;
        height: 100%;
        background-color: #001A35;
        position: fixed;
        margin-top: -8px;
        margin-right: 0px;
        margin-left: -15px;
    }
    .boxall{
        padding-top: 10px;
        background-color: #001A35;
        color: #FFFFFF;
    }
    .box1{
        text-align: center;
        width: 100%;
        display: inline-block;
        font-size: 22px;
        font-weight: bold;

        letter-spacing: 4px;
    }
    .box2{
        text-align: center;
        width: 150px;
        font-size: 18px;
        display: inline-block;
    }
    .box3{
        width: 200px;
        float:right;
        display: inline-block;
        font-size: 18px;
    }
    .box4{
        text-align: right;
        width: 100px;
        float: right;
        display: inline-block;
        font-size: 18px;
    }
</style>
<div class="row">
    <div class="boxall">
        <div class="box1">
            <p>產線一</p>
        </div>
        <div class="box2">
            <p>{$pageinfo}</p>
        </div>
        <div class="box3">
            <p>{php}echo date("Y-m-d H:i"){/php}</p>
        </div>
        <div class="box4">
            <p>日期：</p>
        </div>

    </div>

    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr style="color: #FFFFFF;">
                <th>工序</th>
                <th>開工人員</th>
                <th>開工人数</th>
                <th>產量</th>
                <th>開工时间</th>
                <th>預估工時</th>
                <th>工作狀態</th>
                <th>工单</th>
                <th>規格</th>
                <!--<th>品名</th>-->
            </tr>
            </thead>
            {foreach name="list" item="row" index="i"}
            <tr>
                <td>{$row['procedure_name']}</td>
                <td>{$row['man_name']}</td>
                <td>{$row['man_num']}</td>
                <td>{$row['num']}</td>
                <td>{$row['startdate']}</td>
                <td>{$row['manhours']}</td>
                <td {if $row['state'] == 2} style="color: #FE8800;" {/if}>{$row['zt']}</td>
                <td>{$row['workorder_name']}</td>
                <td>{$row['MainProcessName']}</td>
                <!--<td>{$row['ProductName']}</td>-->
            </tr>
            {/foreach}

        </table>
    </div>
</div>
								







